{{include file="../Common/head.html"}}
		<div class="box">
			<a href="index.php?m=Admin&c=Stu&a=add&cid={{$smarty.get.cid}}" class="btn btn-info">添加学生</a>
			<table class="table table-hover">
				<tr>
					<th>学生编号</th>
					<th>学生姓名</th>
					<th>学生年龄</th>
					<th>学生性别</th>
					<th>操作</th>
				</tr>
				{{foreach from="$data" key=k item=v}}
				<tr>
					<td>{{$v.sid}}</td>
					<td>{{$v.sname}}</td>
					<td>{{$v.age}}</td>
					<td>{{$v.sex}}</td>
					<td>
						<a href="index.php?m=Admin&c=Stu&a=edit&cid={{$smarty.get.cid}}&sid={{$v.sid}}" class="btn btn-success btn-xs" >编辑学生</a>
						<button  type="button" class="btn btn-danger btn-xs">删除学生</button>
					</td>
				</tr>
				{{/foreach}}
			</table>

		</div>

	</body>

</html>
